package org.corey.wyp.vo
{
	import mx.collections.ArrayCollection;
	
	[Bindable]
	[RemoteClass(alias="org.corey.wyp.vo.Month")]
	public class Month
	{	
		public var year:int;
		public var month:int;
		public var days:ArrayCollection=new ArrayCollection();
		private var _out:Number;
		private var calculated:Boolean=false;
		
		public function Month()
		{
		}
		
		public function get out():Number{
			if(calculated){
				if(days!=null && days.length>0){
					for(var i:int=0;i<days.length;i++){
						_out+=Calendar(days[i]).out;
					}
				}
			}
			calculated=true;
			return _out;
		}

	}
}